export PINFRAC_ROOT=~/.pinfrac
export PINFRAC_PATH=$PINFRAC_ROOT/_pinfrac
export PINFRAC_USERDATA=$PINFRAC_ROOT/_userdata

alias pinfrac="source $PINFRAC_PATH/pinfrac.sh"
pinfrac init

function _autocomplete ()
{
    local comp_line=$COMP_LINE
    COMPREPLY=$(python3 $PINFRAC_PATH/autocomplete.py $COMP_CWORD $COMP_LINE)
}

complete -F _autocomplete pinfrac
